package ssm.shopping.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import ssm.shopping.dao.interfaces.ISmsHisDao;
import ssm.shopping.entity.SmsHis;
import ssm.shopping.service.interfaces.ISmsHisService;
import ssm.shopping.util.ResultData;

/**
 * 短信记录实现类
 * @author roberthuang
 *
 */
@Service("smsHisService")
public class SmsHisServiceImpl implements ISmsHisService{

	Logger logger = LoggerFactory.getLogger(CustServiceImpl.class);

	@Resource
	ISmsHisDao smsHisDao;
	
	/**
	 * 添加短信记录
	 */
	@Override
	public void addSmsHis(SmsHis smsHis) throws Exception {
		
		smsHisDao.add(smsHis);
		
	}

	/**
	 * 修改短信记录
	 */
	@Override
	public ResultData updateSmsHis(SmsHis smsHis) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * 按手机号码查询
	 */
	@Override
	public SmsHis queryByPhone(int custId) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * 分页查询
	 */
	@Override
	public List<SmsHis> queryPage(int firstResult, int maxResult)
			throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

}
